<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>彼此相邻的浮动</title>
    <!--彼此相邻的浮动元素-->
    <!--如果你把几个浮动的元素放到一起，如果有空间的话，它们将彼此相邻。-->
    <!--在这里，我们对图片廊使用 float 属性：-->
    <style>
        .thumbnail
        {
            float: left;
            width: 110px;
            height: 90px;
            margin: 5px;
        }
    </style>
</head>
<body>
<h3>图片库</h3>
<p>试着调整窗口，看看当图片没有足够的控件会发生什么。</p>
<img class="thumbnail" src="./image/klematis_small.jpg" width="107" height="90">
<img class="thumbnail" src="./image/klematis2_small.jpg" width="107" height="80">
<img class="thumbnail" src="./image/klematis3_small.jpg" width="116" height="90">
<img class="thumbnail" src="./image/klematis4_small.jpg" width="120" height="90">
<img class="thumbnail" src="./image/klematis_small.jpg" width="107" height="90">
<img class="thumbnail" src="./image/klematis2_small.jpg" width="107" height="80">
<img class="thumbnail" src="./image/klematis3_small.jpg" width="116" height="90">
<img class="thumbnail" src="./image/klematis4_small.jpg" width="120" height="90">
</body>
</html>